﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ModulesPage.Master" AutoEventWireup="true" CodeBehind="StaffCreation.aspx.cs" Inherits="SwenAssignment3.HousekeepingManagementModule.StaffCreation" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="ModulePage.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    .auto-style1 {
        width: 100%;
    }
    .auto-style2 {
        width: 232px;
    }
    .auto-style5
    {
        width: 232px;
        height: 23px;
    }
    .auto-style6
    {
        height: 23px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <table class="auto-style1">
    <tr>
        <td class="auto-style2">Staff ID:</td>
        <td>
            <asp:TextBox ID="tbxStaffID" runat="server"></asp:TextBox>
            <asp:Label ID="lblStatus" runat="server" ForeColor="Red"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="auto-style2">First Name:</td>
        <td>
            <asp:TextBox ID="tbxfirstName" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxfirstName" ErrorMessage="Please enter your first name" ForeColor="Red"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style2">Last Name:</td>
        <td>
            <asp:TextBox ID="tbxlastName" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxlastName" ErrorMessage="Please enter your last name" ForeColor="Red"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style2">Date of Birth:</td>
        <td>
            <asp:TextBox ID="tbxDOB" runat="server"></asp:TextBox>
            <asp:CalendarExtender ID="tbxDOB_CalendarExtender" runat="server" Enabled="True" TargetControlID="tbxDOB">
            </asp:CalendarExtender>
        </td>
    </tr>
    <tr>
        <td class="auto-style2">Home Address:</td>
        <td>
            <asp:TextBox ID="tbxAddress" runat="server" Height="39px" TextMode="MultiLine" Width="179px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style2">Phone Number:</td>
        <td>
            <asp:TextBox ID="tbxPhone" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="tbxPhone" ErrorMessage="Please enter the correct phone number" ForeColor="Red" ValidationExpression="/^[689]\d{7}$/"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style5">Bank Account Number:</td>
        <td class="auto-style6">
            <asp:TextBox ID="tbxbankAccount" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="tbxbankAccount" ErrorMessage="Please enter the correct bank account number" ForeColor="Red" ValidationExpression="^\w{1,17}$"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="auto-style2">Duty ID:</td>
        <td>
            <asp:DropDownList ID="ddldutyID" runat="server" Height="16px">
            </asp:DropDownList>
            <br />
        </td>
    </tr>
    <tr>
        <td class="auto-style2">&nbsp;</td>
        <td>
            <asp:ImageButton ID="ImageButton3" runat="server" Height="38px" ImageUrl="~/Pictures/CreateButton1.png" OnClick="ImageButton3_Click" Width="73px" />
&nbsp;<asp:ImageButton ID="ImageButton4" runat="server" Height="41px" ImageUrl="~/Pictures/BackButton1.png" OnClientClick="history.back()" Width="69px" />
        </td>
    </tr>
</table>
</asp:Content>
